package router

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"momo/api/handler"
)

func Router(c *gin.Engine) {
	MomentApi := c.Group("/api/moment")  //动态路由组
	UserApi := c.Group("/api/user")      //户路由组
	SocialApi := c.Group("/api/social")  //社交路由组
	Location := c.Group("/api/location") //位置路由组

	c.POST("/upload", handler.Upload)
	c.POST("/create", handler.Create)
	c.GET("/show", handler.Show)
	c.POST("/delete", handler.Delete)

	fmt.Println(MomentApi, UserApi, SocialApi, Location)
}
